import { Module } from '@nestjs/common'
import { MenuService } from './menu.service'
import { MenuEntity } from './entities/menu.entity'
import { MenuController } from './menu.controller'
import { AuthModule } from '../auth/auth.module'
import { TypeOrmModule } from '@nestjs/typeorm'
import { OrderEntity } from '../order/entities/order.entity'
import { OrderItemEntity } from '../order/entities/order-item.entity'
import { OrderService } from '../order/order.service'
import { UserModule } from '../user/user.module'
// import { ScheduleModule } from '@nestjs/schedule'
import { MenuScheduleService } from './schedule/menu-schedule.service'
import { MenuDetailEntity } from '../menuDetail/entities/menuDetail.entity'
import { PointsModule } from '../points/points.module'
@Module({
  imports: [
    TypeOrmModule.forFeature([MenuEntity, OrderEntity, OrderItemEntity, MenuDetailEntity]),
    AuthModule,
    UserModule,
    // ScheduleModule.forRoot(),
    PointsModule,
  ],
  providers: [MenuService, OrderService, MenuScheduleService],
  controllers: [MenuController],
  exports: [MenuService, OrderService]
})
export class MenuModule { }
